The following file contains the R code necessary to replicate all of the analyses and figures from the main text and appendices:

- full_replication_code.R

The following files are the datasets used for analyses (listed in order of where they appear in the code). They will be loaded, cleaned, and merged within the above code file. Below each data file is a citation to the original data source.

- democracy_measures_paper.csv

Grumbach, Jacob. 2023. �Laboratories of Democratic Backsliding.� American Political Science Review 117: 967-84.

- cb_2018_us_state_20m

�Cartographic Boundary Files - Shapefile.� United States Census Bureau. https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html.

- covi.csv

Schraufnagel, Scot, Michael J. Pomante II, and Quan Li. 2020. �Cost of Voting in the American States: 2020.� Election Law Journal: Rules, Politics, and Policy 19: 503-9.

- state_house_analysis.RData

Stephanopoulos, Nicholas, and Christopher Warshaw. 2020. �The Impact of Partisan Gerrymandering on Political Parties.� Legislative Studies Quarterly 45: 609-43.

- congress_analysis.RData

Stephanopoulos, Nicholas, and Christopher Warshaw. 2020. �The Impact of Partisan Gerrymandering on Political Parties.� Legislative Studies Quarterly 45: 609-43.




